#ifndef ISOURCEPLUGIN_H
#define ISOURCEPLUGIN_H

class ISourcePlugin:public QObject{
  Q_OBJECT
public:
  enum E_Plugin_Type {
    DataBase=0,
    Message,
    Wight
  };

  enum E_Plugin_Name {
    MySql,
    Sqlite,
    NoSql
};

public:
  ISourcePlugin(QObject* parent = nullptr) : QObject(parent) {}
  virtual ~ISourcePlugin() = default;
  virtual E_Plugin_Name pluginName() const = 0;
  virtual E_Plugin_Type pluginType() const = 0;
};
#define ISOURCEPLUGIN_IID "com.example.SourcePlugin.ISourcePlugin"
Q_DECLARE_INTERFACE(ISourcePlugin, ISOURCEPLUGIN_IID)
#endif //ISOURCEPLUGIN_H
